package com.ruoyi.applet.mapper;

import com.ruoyi.applet.domain.AppletSelect;
import com.ruoyi.applet.domain.AppletTeam;
import com.ruoyi.applet.domain.TopData;

import java.util.List;

/**
 * appletTeamMapper接口
 *
 * @author PengFeiDeng
 * @date 2022-05-30
 */
public interface AppletTeamMapper {

    TopData getIndexTopData();


    /**
     * 查询appletTeam
     *
     * @param teamId appletTeam主键
     * @return appletTeam
     */
    AppletTeam selectAppletTeamByTeamId(Long teamId);

    /**
     * 查询appletTeam列表
     *
     * @param appletTeam appletTeam
     * @return appletTeam集合
     */
    List<AppletTeam> selectAppletTeamList(AppletTeam appletTeam);


    List<AppletTeam> selectAppletTeamListOrderByWalkSum(AppletTeam appletTeam);

    /**
     * 新增appletTeam
     *
     * @param appletTeam appletTeam
     * @return 结果
     */
    int insertAppletTeam(AppletTeam appletTeam);

    /**
     * 修改appletTeam
     *
     * @param appletTeam appletTeam
     * @return 结果
     */
    int updateAppletTeam(AppletTeam appletTeam);

    int updateAppletTeamSum(AppletTeam appletTeam);

    /**
     * 删除appletTeam
     *
     * @param teamId appletTeam主键
     * @return 结果
     */
    int deleteAppletTeamByTeamId(Long teamId);

    /**
     * 批量删除appletTeam
     *
     * @param teamIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteAppletTeamByTeamIds(Long[] teamIds);


    List<AppletSelect> getTeamSelectList();


    Integer getTeamRankInList(Long teamId);

}
